﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="showCustomersDetails.aspx.cs" Inherits="SWENAssignment.Sophia.addCustomersDetails" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .auto-style1 {
            width: 100%;
        }
        .auto-style2 {
            width: 950px;
            height: 280px;
        }
        .auto-style3 {
            height: 23px;
        }
        .auto-style4 {
            text-decoration: underline;
            font-size: large;
        }

    </style>
</head>
<body style="background-color: #CCFFCC">
    <form id="form1" runat="server">
    <div>
    
        <table class="auto-style1">
            <tr>
                <td colspan="4">
                    <img alt="banner" class="auto-style2" src="../Images/jjw-dona-filipa-hotel-home-banner-01.jpg" /></td>
            </tr>
            <tr>
                <td colspan="4"><strong>WELCOME TO ROOM BOOKING MODULE!</strong></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Sophia/RANBMainPage.aspx">Back to Main Page</asp:HyperLink>
                </td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style4"><strong>Customer&#39;s Particulars</strong></td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns ="False" Width="826px" DataKeyNames="customerID" DataSourceID="SqlDataSource1" >
                        <Columns>
                            <asp:BoundField DataField="customerID" HeaderText="customerID" ReadOnly="True" SortExpression="customerID" />
                            <asp:BoundField DataField="lastName" HeaderText="lastName" SortExpression="lastName" />
                            <asp:BoundField DataField="firstName" HeaderText="firstName" SortExpression="firstName" />
                            <asp:BoundField DataField="nationality" HeaderText="nationality" SortExpression="nationality" />
                            <asp:BoundField DataField="contactNo" HeaderText="contactNo" SortExpression="contactNo" />
                            <asp:BoundField DataField="address" HeaderText="address" SortExpression="address" />
                            <asp:BoundField DataField="email" HeaderText="email" SortExpression="email" />
                         
                                 <asp:TemplateField HeaderText="Edit">
                               <ItemTemplate> 
                                   <asp:LinkButton ID ="EditButton" runat="server" OnClick ="EditButton_Click" CommandArgument='<%# Eval("customerID") + "," + Eval("contactNo") + "," + Eval("address") + "," + Eval("email")%>' Text="Edit" />
                               </ItemTemplate>
                            </asp:TemplateField>
                            
                          

                        </Columns>
                    </asp:GridView>
                    
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:HotelManagementConnectionString %>" SelectCommand="SELECT * FROM [customersDetails]"></asp:SqlDataSource>
                    
                </td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style3"></td>
                <td class="auto-style3"></td>
                <td class="auto-style3"></td>
                <td class="auto-style3"></td>
            </tr>
            <tr>
                <td class="auto-style3"></td>
                <td class="auto-style3"></td>
                <td class="auto-style3"></td>
                <td class="auto-style3"></td>
            </tr>
            <tr>
                <td class="auto-style3"></td>
                <td class="auto-style3"></td>
                <td class="auto-style3"></td>
                <td class="auto-style3"></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
